gridpack::math::fallback Namespace Reference

Functions

template<typename T , typename I >
void addDiagonal (BaseMatrixInterface< T, I > &A, const T &x)
 Shift the diagonal of this matrix by the specified value.
template<typename T , typename I >
double norm2 (const parallel::Communicator &comm, const BaseMatrixInterface< T, I > &A)
template<typename T , typename I >
void diagonal (const MatrixT< T, I > &A, VectorT< T, I > &d)
 Get the diagonal from a Matrix and put in new Vector (fallback).
template<typename T , typename I >
MatrixT< T, I > * diagonal (const VectorT< T, I > &x, const MatrixStorageType &stype=Sparse)
 Make a diagonal Matrix from a Vector.
template<typename T , typename I >
void column (const MatrixT< T, I > &A, const I &cidx, VectorT< T, I > &c)
 Get a column from the Matrix and put in new Vector (fallback).
template<typename T , typename I >
void multiplyDiagonal (MatrixT< T, I > &A, const VectorT< T, I > &x)
 Multiply this matrix diagonal by the specified vector (fallback).
template<typename T , typename I >
void addDiagonal (MatrixT< T, I > &A, const VectorT< T, I > &x)
 Add the specified vector to the diagonal of this matrix (fallback).
template<typename T , typename I >
void denseMatrixMultiply (const MatrixT< T, I > &A, const MatrixT< T, I > &B, MatrixT< T, I > &C)
template<typename T , typename I >
MatrixT< T, I > * denseMatrixMultiply (const MatrixT< T, I > &A, const MatrixT< T, I > &B)

Function Documentation

template<typename T , typename I >
void gridpack::math::fallback::addDiagonal ( MatrixT< T, I > &  A,
const VectorT< T, I > &  x 
)
template<typename T , typename I >
void gridpack::math::fallback::addDiagonal ( BaseMatrixInterface< T, I > &  A,
const T &  x 
)
template<typename T , typename I >
void gridpack::math::fallback::column ( const MatrixT< T, I > &  A,
const I &  cidx,
VectorT< T, I > &  c 
)
template<typename T , typename I >
MatrixT<T, I>* gridpack::math::fallback::denseMatrixMultiply ( const MatrixT< T, I > &  A,
const MatrixT< T, I > &  B 
)
template<typename T , typename I >
void gridpack::math::fallback::denseMatrixMultiply ( const MatrixT< T, I > &  A,
const MatrixT< T, I > &  B,
MatrixT< T, I > &  C 
)
template<typename T , typename I >
MatrixT<T, I>* gridpack::math::fallback::diagonal ( const VectorT< T, I > &  x,
const MatrixStorageType &  stype = Sparse 
)
template<typename T , typename I >
void gridpack::math::fallback::diagonal ( const MatrixT< T, I > &  A,
VectorT< T, I > &  d 
)

Get the diagonal from a Matrix and put in new Vector (fallback).

Get the diagonal from a Matrix and put it in specified Vector.

Collective.

Parameters:
A 
x 
Returns:
pointer to new, allocated Vector containing the diagonal elements of A

References gridpack::math::BaseMatrixInterface< T, I >::getElement(), gridpack::math::BaseMatrixInterface< T, I >::localRowRange(), gridpack::math::BaseVectorInterface< T, I >::ready(), and gridpack::math::BaseVectorInterface< T, I >::setElement().

template<typename T , typename I >
void gridpack::math::fallback::multiplyDiagonal ( MatrixT< T, I > &  A,
const VectorT< T, I > &  x 
)
template<typename T , typename I >
double gridpack::math::fallback::norm2 ( const parallel::Communicator &  comm,
const BaseMatrixInterface< T, I > &  A 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 3 Feb 2020 for GridPACK by  doxygen 1.6.1